package cn.edu.scau.cmi.wujiaxian.exercise3;

import java.util.Scanner;

public class InputData {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int amount = 0;
		float price = 0;
		float sum = 0;
		System.out.println("输入产品数量(回车确认)：");
		amount = reader.nextInt();
		System.out.println("输入产品单价(回车确认)：");
		price = reader.nextFloat();
		sum = price * amount;
		System.out.printf("数量：%d, 单价:%5.2f,总价格:%5.2f", amount, price, sum);
		reader.close();
	}

}
